package ken.spring.cloud.alibaba;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.session.FlushMode;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * <ul>
 * <li>Title: 本实例为session共享的demo  使用redis实现  需要引入redis相关依赖</li>
 * <li>Description: TODO </li>
 * </ul>
 *
 * @author swc
 * @date 2022-06-20 20:40
 */
@SpringBootApplication
@EnableDiscoveryClient
//@EnableRedisHttpSession(flushMode = FlushMode.IMMEDIATE)
//@EnableCircuitBreaker//支持断路器
public class RedisSessionApplication8898 {

    public static void main(String[] args) {
        SpringApplication.run(RedisSessionApplication8898.class, args);
    }

}
